package org.jmh.gift.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.jmh.gift.service.IShopCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ShopCarJob {

    @Autowired
    private IShopCarService shopCarService;

    @XxlJob("shopCarDataSyncJobHandler")
    public void syncData(){
        System.out.println("开始");
        shopCarService.jobTest();
        System.out.println("结束");
    }

}